;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        "planA": {
            "name": "骑行保共享单车意外险",
            "company": "众安保险",
            "days": "1m",
            "people_count": "1",
            "accident_death": "60000",
            "accident_medical": "10000",
            "public_duty": "10000",
            "price": "5.00"
        },
        "planB": {
            "name": "骑行保共享单车意外险",
            "company": "众安保险",
            "days": "3m",
            "people_count": "1",
            "accident_death": "100000",
            "accident_medical": "10000",
            "public_duty": "10000",
            "price": "10.00"
        },
        "planC": {
            "name": "骑行保共享单车意外险",
            "company": "众安保险",
            "days": "6m",
            "people_count": "1",
            "accident_death": "200000",
            "accident_medical": "10000",
            "public_duty": "10000",
            "price": "25.00"
        },
        "planC": {
            "name": "骑行保共享单车意外险",
            "company": "众安保险",
            "days": "1y",
            "people_count": "1",
            "accident_death": "400000",
            "accident_medical": "20000",
            "public_duty": "20000",
            "price": "90.00"
        }
    }
    for( k in plan ){
        data = plan[k];
        console.log( data );
        mysql.insertData( data );
    }
    mysql.close();

}
